<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<EditAccountDataModelView>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Finweb :: Editar banco
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="PageTitle" runat="server">
    <div class="title">Editar banco</div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>
        <%= Html.Hidden("EditedBank.Id", Model.EditedBank.Id)%>
        <input type="hidden" id="FromDate" name="FromDate" value="<%= Model.FromDate.ToString("dd/MM/yyyy")%>" />    
        <input type="hidden" id="ToDate" name="ToDate" value="<%= Model.ToDate.ToString("dd/MM/yyyy")%>" />

        <table>
            <tr>
                <td>BankId:</td>
                <td><%= Html.TextBox("EditedBank.BankId", Model.EditedBank.BankId)%><%= Html.ValidationMessage("BankId", "*") %></td>
            </tr>
            <tr>
                <td>AccountId:</td>
                <td><%= Html.TextBox("EditedBank.AccountId", Model.EditedBank.AccountId)%><%= Html.ValidationMessage("AccountId", "*") %></td>
            </tr>
            <tr>
                <td>Nome:</td>
                <td><%= Html.TextBox("EditedBank.Name", Model.EditedBank.Name)%><%= Html.ValidationMessage("Name", "*") %></td>
            </tr>
            <tr>
                <td>Limite:</td>
                <td><%= Html.TextBox("EditedBank.Limit", String.Format("{0:F}", Model.EditedBank.Limit))%><%= Html.ValidationMessage("Limit", "*") %></td>
            </tr>
        </table>
        <p>
            <input type="submit" value="Save" />
        </p>
    <% } %>
</asp:Content>

